package com.zzyl.mapper;

import com.zzyl.entity.Floor;
import com.zzyl.vo.FloorVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FloorMapper {

    //添加楼层
    int insert(Floor floor);

    //删除楼层
    int deleteById(Integer id);

    //修改楼层
    int updateById(Floor floor);

    //查询楼层(根据id)
    Floor selectById(Integer id);

    //获取所有楼层
    List<FloorVo> selectAll();

    List<FloorVo> selectAllRoomAndBed();

    List<FloorVo> selectAllByNur();

}
